import java.lang.Thread.UncaughtExceptionHandler;

public class ExcpetionHandler implements UncaughtExceptionHandler {

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        ThreadLocal xLocal;
        System.out.println(t.getId());
        System.out.println(e.getMessage());
    }

}
